﻿#include "CmdLineChartComputeHIRF.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdLineChartComputeHIRF::CmdLineChartComputeHIRF()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdLineChartComputeHIRF::~CmdLineChartComputeHIRF()
    {
    }

    bool CmdLineChartComputeHIRF::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_lineChartComputeHIRF(
                m_graphNames,
                m_incidentWaveFieldValue,
                m_HIRFName,
                m_typeName,
                m_isCheckBoxChecked
        );
        return _success;
    }

    void CmdLineChartComputeHIRF::undo()
    {
        // TODO: undo
    }

    void CmdLineChartComputeHIRF::redo()
    {
        execute();
    }

}
